/*
 * Copyright (C) 2021 Fastjrun, Inc. All Rights Reserved.
 */
package com.fastjrun.share.demo.service;

import com.fastjrun.service.BaseService;
import com.fastjrun.share.demo.entity.SysUser;
import com.fastjrun.share.demo.security.vo.UserDetailsVO;
import com.fastjrun.share.demo.utils.ContextUtils;

public class BaseDemoService extends BaseService {

    protected static final Integer PAGE_CURRENT=1;
    protected static final Integer PAGE_SIZE=10;

    protected SysUser getCurrentUser(){
        Object principal = ContextUtils.getCurrentUser();
        UserDetailsVO userDetailsVO=(UserDetailsVO) principal;
        return userDetailsVO.getSysUser();
    }

}
